package com.harboursoftware.xstorage.db;

import com.harboursoftware.xstorage.XStorageException;
import com.harboursoftware.xstorage.model.XUser;

/**
 * <p>
 * 该接口的实现必须是线程安全的
 * </p>
 * @author Simon Leung
 * @since 0.1
 */
public interface UserDao {
    public XUser findUserById(String id) throws XStorageException;

    public XUser findUserByAccessKeyId(String accessKeyId) throws XStorageException;

    public XUser findUserByEmail(String email) throws XStorageException;

    public void saveUser(XUser user) throws XStorageException;
}
